filechooserwidget: Don't look at saved window position
authorTimm Bäder <mail@baedert.org>
Fri, 19 Jul 2019 07:54:30 +0000 (09:54 +0200)
committerTimm Bäder <mail@baedert.org>
Fri, 19 Jul 2019 16:14:49 +0000 (18:14 +0200)
We don't save it anymore so no need to look at it here.

gtk/gtkfilechooserwidget.c

index 59fb17604085fd851acba2c1accd443eef1ecc10..0a37e2834d084bd7d3b4d015f358c5d56fcc24ba 100644 (file)
@@ -6177,15 +6177,14 @@ gtk_file_chooser_widget_get_default_size (GtkFileChooserEmbed *chooser_embed,
   GtkFileChooserWidget *impl = GTK_FILE_CHOOSER_WIDGET (chooser_embed);
   GtkFileChooserWidgetPrivate *priv = gtk_file_chooser_widget_get_instance_private (impl);
   GtkRequisition req;
-  int x, y, width, height;
+  int width, height;
   GSettings *settings;
 
   settings = _gtk_file_chooser_get_settings_for_widget (GTK_WIDGET (impl));
 
-  g_settings_get (settings, SETTINGS_KEY_WINDOW_POSITION, "(ii)", &x, &y);
   g_settings_get (settings, SETTINGS_KEY_WINDOW_SIZE, "(ii)", &width, &height);
 
-  if (x >= 0 && y >= 0 && width > 0 && height > 0)
+  if (width > 0 && height > 0)
     {
       *default_width = width;
       *default_height = height;